package game.element.block;

import game.element.ImageGameElement;
import game.map.GameMapLevel;

public abstract class AbstractBlockElement extends ImageGameElement {

	private boolean collosionEnabled = true;
	private boolean destroyable = false;

	public AbstractBlockElement(int x, int y) {
		super(x, y, GameMapLevel.SCREEN_BLOCKS_WIDTH, GameMapLevel.SCREEN_BLOCKS_HEIGHT);
	}

	public void destroy() {
		setVisible(false);
		setCollosionEnabled(false);
	}

	public boolean isCollosionEnabled() {
		return collosionEnabled;
	}

	public boolean isDestroyable() {
		return destroyable;
	}

	public void setCollosionEnabled(boolean collosionEnabled) {
		this.collosionEnabled = collosionEnabled;
	}

	public void setDestroyable(boolean destroyable) {
		this.destroyable = destroyable;
	}

}